Bandwidth part (bwp) and power scheduling method and apparatus for indoor terahertz

ABSTRACT

A bandwidth part (BWP) and power scheduling method and apparatus for indoor terahertz are provided. The BWP and power scheduling method uses an intelligent reflecting surface (IRS) and a non-orthogonal multiple access (NOMA) to compensate for a shortcoming, wherein terahertz waves are not suitable for an indoor transmission, convert an indoor environment of an IRS-assisted terahertz propagation into a channel model, and convert an optimal wireless resource scheduling in an indoor IRS-assisted terahertz system into a functional optimization design with random constraints. Policies and corresponding actions are trained by using a proximal policy optimization (PPO) to schedule a power and a BWP. An actor part generates continuous a power scheduling, and a critic part generates a discrete BWP scheduling.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is based upon and claims priority to Chinese Patent Application No, 202011187720.5, filed on Oct. 29, 2020, the entire contents of which are incorporated herein by reference.

TECHNICAL FIELD

The present invention relates to the technical field of mobile communications, and in particular, to a bandwidth part (MVP) and power scheduling method and apparatus for indoor terahertz based on proximal policy optimization (PPO) dual training in an intelligent reflecting surface (IRS)-assisted scene.

BACKGROUND

In the development of wireless communications technologies, spectrum resources have always been scarce and precious resources. Nowadays, as one of the key wireless communication technologies, millimeter waves have received extensive attention from the industry and academia. In the upcoming 6G era, terahertz will trigger a revolutionary development of science and technology with its higher bandwidth and narrower beam. However, during propagation of terahertz waves in the air, water molecules may cause a transmission loss. Therefore, terahertz communication is more suitable for short-distance communication. However, there are many obstacles in an indoor environment, such as furniture, electrical appliances and moving people, while terahertz waves have an extremely short wavelength. As a result, the communication blocking effect is severe indoor.

To solve the above problem, an intelligent reflecting surface (IRS), as a new technology, can intelligently reconfigure transmitted signals by integrating a large number of relatively inexpensive passive reflective elements on a plane, thereby significantly improving the reflectivity and the performance of a wireless communication network. In some studies, it is proposed to establish a simultaneous wireless information and power transmission system assisted by an IRS, to improve energy harvesting performance. In addition, compared with the traditional orthogonal multiple access technology, the non-orthogonal multiple access (NOMA) technology can provide higher throughput load and user requirements, thereby improving the performance of the entire system.

However, in terms of resource scheduling, the existing technology mainly focuses on power scheduling, and ignores scheduling of the bandwidth part (BWP). From the perspective of radio frequency signal processing, use of a wide bandwidth may cause unnecessary power consumption, making it difficult to use resources rationally, thus affecting economic benefits.

SUMMARY

An objective of the present invention is to provide a bandwidth part (BWP) and power scheduling method and apparatus for indoor terahertz, to implement scheduling of power and BWP resources by using an actor-critic structure of a proximal policy optimization (PPO) algorithm, and accelerate training by introducing primal duals, thereby realizing rational scheduling of indoor bandwidth and power resources, while ensuring the maximum economic benefits and energy efficiency of equipment suppliers.

To achieve the above purpose, the present invention provides the following technical solutions. In one aspect, a BWP and power scheduling method for indoor terahertz includes the following steps:

S1: initializing parameters and states of a wireless access device, users, and an intelligent reflecting surface (IRS), including an initial transmit power p₀, a policy parameter θ₀:={μ₀, σ₀}, and Lagrange multipliers λ₀, ϕ₀;

S2: extracting samples

,

,

from a truncated standard normal distribution;

S3: calculating a terahertz path loss L (ƒ, d) and a channel gain , including a transmission path from the wireless access device to each user, and a transmission path from the wireless access device to each user through reflection by the IRS;

S4: inputting initial conditions to a resource scheduling formula;

S5: inputting a channel state obtained from a channel state matrix

to a PPO algorithm;

S6: calculating an estimate of gradient according to an obtained new policy parameter set θ and a generated scheduling action;

S7: updating primal-dual variables by using a primal-dual optimization algorithm, until a reward converges;

S8: outputting an action obtained after learning, a scheduled BWP factor β and power p, and a final system performance function ƒ₀ (x);

S9: traversing all the users, and repeating step S2 to step S7, to complete scheduling for all the users; and

S10: terminating a method process, and fetching data.

Preferably, in step S3, channel estimations are integrated:

H_(j,k)@H_(LOS,j,k)+H_(j,r), ΦH_(r,k),

to unify the two transmission paths;

H_(j,k) is a channel gain from the wireless access device to the user, H_(r,k) is a channel gain from the IRS to the user, H_(j,r) is a channel gain from the wireless access device to the IRS, Φ is a phase transition matrix, and H_(LOS,j,k) is a channel gain without passing through IRS.

Preferably, in step S4, the resource scheduling formula is expressed as a long-term instantaneous system performance function using an ergodic mean x capture system: x≤E [f(p(h),h)], where f (p(h),h) is an instantaneous performance function.

Preferably, in step S5, the channel state is inputted to an actor part and a critic part of the PPO algorithm, where the actor part generates a new policy function, and selects a Gaussian policy to output a choice for scheduling of an action, and the critic part generates a new action according to an original Q value function, to schedule a BWP factor.

Preferably, in step S6, the estimate of gradient is calculated according to the obtained new policy parameter set θ and the generated scheduling action:

$\mspace{76mu}{{\text{?}{f_{0}\left( x_{0} \right)}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{\text{?}\left( {x_{0} + {\alpha_{1}{\hat{x}}_{1}}} \right)} - {\text{?}\left( x_{0} \right)}}{\alpha_{1}}{\hat{x}}_{1}},\mspace{76mu}{\text{?}{f_{2}\left( x_{0} \right)}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{\text{?}\left( {x_{0} + {\alpha_{2}{\hat{x}}_{2}}} \right)} - {\text{?}\left( x_{0} \right)}}{\alpha_{2}}\text{?}},{{\text{?}{E\left\lbrack {f_{1}\left( {{\pi\left( {h,\theta} \right)},h} \right)} \right\rbrack}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{\text{?}\left( {{\pi\left( {h,{\theta_{0} + {\alpha_{3}\text{?}}}} \right)},h} \right)} - {\text{?}\left( {{\pi\left( {h,\theta} \right)},h} \right)}}{\alpha_{3}}\text{?}};}}$      ?indicates text missing or illegible when filed

where x₀ is a given point,

,

,

are sampling points, α₁, α₂, α₃ are iteration factors of a gradient estimation; h is a channel state; π(h,θ) is an allocation policy;

(π(h, θ), h) is an observation value of an instantaneous system performance function;

(x₀) is an observation value of a constraint function;

(x₀) is an observation value of a target function; and

ƒ₀(x₀),

ƒ₂(x₀),

_(θ)E[f₁(π(h,θ), h)] is a gradient observation value obtained through calculation; and

in step S7, Lagrangian operators λ_(k+1) and ϕ_(k+1) are updated based on step sizes γ₁,γ₂,γ₃, γ₄, and a Lagrangian operator updating formula is as follows:

θ_(k+1)=θ_(k)+Γ₁

_(θ) E [f ₁(π(h, θ _(k)), h)λ_(k)],

x _(k+1) =x _(k)+γ₂(

ƒ₀(x _(k))+

f ₂(x _(k))ϕ_(k)−1),

λ_(k+1)=λ_(k)−y₃(

(π(h, θ _(k+1)), h)−x _(k+1)),

ϕ_(k+1)=ϕ_(k)−γ₄

(x _(k+1)),

where h is a channel state; f₁ (π(h, θ), h) is an instantaneous data transmission rate; n(h, θ) is an instantaneous transmit power; θ_(k) is a parameter set of the k^(th) cycle; x_(k) is an ergodic mean of the k^(th) cycle; and λ_(k), ϕ_(k) are Lagrange multipliers of the k^(th) cycle.

In another aspect, a BWP and power scheduling apparatus for indoor terahertz includes:

an initialization module, configured to initialize parameters and states of a wireless access device, users, and an IRS, including an initial transmit power p₀, a policy parameter θ₀:={μ₀, σ₀}, and Lagrange multipliers λ₀, ϕ₀;

a sample extraction module, configured to extract samples

,

,

from a truncated. standard normal distribution;

a path loss and channel gain calculation module, configured to calculate a terahertz path loss L(ƒ, d) and a channel gain h_(j,k), including a transmission path from the wireless access device to each user, and a transmission path from the wireless access device to each user through reflection by the IRS;

an initial condition input module, configured to input initial conditions to a resource scheduling formula;

a channel state input module, configured to input a channel state obtained from a channel state matrix H_(JK) to a PPO algorithm;

a gradient estimation module, configured to calculate an estimate of gradient according to an obtained new policy parameter set θ and a generated scheduling action;

a policy updating module, configured to update primal-dual variables by using a primal-dual optimization algorithm, until a reward converges;

an output module, configured to output an action obtained after learning, a scheduled MVP factor β and power p, and a final system performance function ƒ₀(x);

a traversing module, configured to traverse all the users to complete scheduling for all the users; and

a termination module, configured to terminate a method process, and fetch data.

Preferably, the path loss and channel gain calculation module is specifically configured to integrate channel estimations:

H _(j,k) ∨H _(LOS,j,k) +H _(j,r) ΦH _(r,k),

to unify the two transmission paths;

where H_(j,k) is a channel gain from the wireless access device to the user, is a channel gain from the IRS to the user, H_(j,r) is a channel gain from the wireless access device to the IRS, Φ is a phase transition matrix, and H_(LOS,j,k) is a channel gain without passing through IRS.

Preferably, the resource scheduling formula is expressed as a long-term instantaneous system performance function using an ergodic mean x capture system: x≤E [f(p(h),h)], where f(p(h),h) is an instantaneous performance function.

Preferably, the channel state input module is specifically configured to input the channel state to an actor part and a critic part of the PPO algorithm, where the actor part generates a new policy function, and selects a Gaussian policy to output a choice for scheduling of an action, and the critic part generates a new action according to an original Q value function, to schedule a BWP factor.

Preferably, the gradient estimation module is specifically configured to calculate the estimate of gradient according to the obtained new policy parameter set θ and the generated scheduling action:

$\mspace{76mu}{{\text{?}{f_{0}\left( x_{0} \right)}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{\text{?}\left( {x_{0} + {\alpha_{1}{\hat{x}}_{1}}} \right)} - {\text{?}\left( x_{0} \right)}}{\alpha_{1}}{\hat{x}}_{1}},\mspace{76mu}{\text{?}{f_{2}\left( x_{0} \right)}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{\text{?}\left( {x_{0} + {\alpha_{2}{\hat{x}}_{2}}} \right)} - {\text{?}\left( x_{0} \right)}}{\alpha_{2}}\text{?}},{{\text{?}{E\left\lbrack {f_{1}\left( {{\pi\left( {h,\theta} \right)},h} \right)} \right\rbrack}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{\text{?}\left( {{\pi\left( {h,{\theta_{0} + {\alpha_{3}\text{?}}}} \right)},h} \right)} - {\text{?}\left( {{\pi\left( {h,\theta} \right)},h} \right)}}{\alpha_{3}}\text{?}};}}$      ?indicates text missing or illegible when filed

where x₀ is a given point,

,

,

are sampling points, α₁, α₂, α₃ are iteration factors of a gradient estimation; h is a channel state; π(h, θ) is an allocation policy;

(π(h, θ), h) an observation value of an instantaneous system performance function;

(x₀) is an observation value of a constraint function;

(x₀) is an observation value of a target function; and (x_(o)),V1, (x₀), ₀E f, (7r (h, 0), h) is a gradient observation value obtained through calculation; and

in the policy updating module, Lagrangian operators λ_(k+1) and ϕ_(k+1) are updated based on step sizes γ₁,γ₂,γ₃, γ₄, and a Lagrangian operator updating formula is as follows:

θ_(k+1)=θ_(k)+γ₁

_(θ) E [f ₁(π(h, θ _(k)), h)λ_(k)],

x _(k+1) =x _(k)+γ₂(

ƒ₀(x _(k))+

f ₂(x _(k))ϕ_(k)−1),

λ_(k+1)=λ_(k)−γ₃(

(π(h, θ _(k+1)), h)−x _(k+1)),

ϕ_(k+1)=ϕ_(k)−γ₄

(x _(k+1)),

where h is a channel state; f₁ (π(h, θ), h) is an instantaneous data transmission rate; π(h, θ) is an instantaneous transmit power; θ_(k) is a parameter set of the k^(th) cycle; x_(k) is an ergodic mean of the k^(th) cycle; and λ_(k), ϕ_(k) are Lagrange multipliers of the k^(th) cycle.

Technical solutions provided in the embodiments of the present invention achieve at least the following beneficial effects:

In the present invention, an optimization design for continuous power and discrete BWP is realized jointly by using the actor-critic structure of the proximal policy optimization algorithm, an optimal solution for scheduling of the two types of resources is obtained by using gradient-assisted primal duals, and then an iterative BWP and power joint scheduling algorithm is proposed to maximize the information transmission rate and economic benefits. The present invention not only can schedule indoor bandwidth and power resources rationally, but also can maximize the economic benefits and energy efficiency.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to describe the technical solutions of the embodiments of the present invention more clearly, the accompanying drawings required for describing the embodiments are briefly described below. Apparently, the accompanying drawings described below are only some embodiments of the present invention. Those of ordinary skill in the art may further obtain other accompanying drawings based on these accompanying drawings without creative efforts.

FIG. 1 is a flowchart of a BWP and power scheduling method for indoor terahertz according to an embodiment of the present invention;

FIG. 2 is schematic diagram of an application scenario according to an embodiment of the present invention; and

FIG. 3 is a schematic structural diagram of a BWP and power scheduling apparatus for indoor terahertz according to an embodiment of the present invention.

DETAILED DESCRIPTION OF THE EMBODIMENTS

In order to make the objectives, technical solutions and advantages of the present invention clearer, embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

An embodiment of the present invention first provides a BWP and power scheduling method for indoor terahertz. As shown in FIG. 1, the method includes the following steps:

S1: initializing parameters and states of a wireless access device (AP), users, and an intelligent reflecting surface (IRS), including an initial transmit power p₀, a policy parameter θ₀:={μ₀, σ₀}, and Lagrange multipliers λ₀, ϕ₀:

S2: extracting samples

,

,

from a truncated standard normal distribution;

S3: calculating a terahertz path loss L(ƒ,d) and a channel gain including a transmission path from the wireless access device to each user, and a transmission path from the wireless access device to each user through reflection by the IRS;

S4: inputting initial conditions to a resource scheduling formula;

S5: inputting a channel state obtained from a channel state matrix H_(JK) to a PPO algorithm;

S6: calculating an estimate of gradient according to an obtained new policy parameter set θ and a generated scheduling action;

S7: updating primal-dual variables by using a primal-dual optimization algorithm, until a reward converges;

S8: outputting an action obtained after learning, a scheduled BWP factor and power P , and a final system performance function ƒ₀ (x);

S9: traversing all the users, and repeating step S2 to step S7, to complete scheduling for all the users; and

S10: terminating a method process, and fetching data.

The present invention proposes a novel joint resource scheduling mechanism for the future development of GG wireless indoor networks. Optimization for continuous power and discrete BWP is realized jointly by using an actor-critic structure of the proximal policy optimization (PPO) algorithm, an optimal solution for scheduling of the two types of resources is obtained by using gradient-assisted primal duals, and then an iterative BWP and power joint scheduling algorithm is proposed to maximize the information transmission rate and economic benefits. The method in the present invention not only can schedule indoor bandwidth and power resources rationally, but also can maximize the economic benefits and energy efficiency.

Specifically, one AP with a plurality of antennas and a plurality of indoor users are taken into consideration in the system of the present invention. As shown in FIG. 2, the system includes an AP equipped with a plurality of antennas, a plurality of indoor users, and a preset IRS. A set J represents the number of antennas, and a set K represents the number of users. Considering an application scenario (downlink) where the indoor AP communicates with the users by using the IRS, a frequency band of 1 THz is used, and an access technology is NOMA.

An initial signal from the AP to a user k is s_(k), and a corresponding preceding matrix is defined as F_(k); then, it can be obtained that a transmitted signal x from the AP is:

x=Σ _(k=1) ^(K) ¹ F _(k) s _(k)

Then, a signal received through the IRS is considered. In such a case, there are two transmission links, where Il_(LOS,j,k) represents direct transmission without passing through the IRS, and H_(j,r)ΦH_(r,k) represents indirect transmission through the IRS plane. The two transmission links characterize the established system status.

Obviously, compared with the latter, H_(LOS,j,k) is weak due to the high frequency of terahertz. After transmission over the link, a received signal y_(k) of a k^(th) user is:

y _(k)=Σ_(j=1) ^(J)(H _(LOS,j,k) +H _(j,r) ΦH _(r,k))x _(k) +n _(k)

H_(j,k) is a channel gain from the AP to the user, and is a channel gain from the IRS to the user; H_(j,r) is a channel gain from the AP to the IRS; Φ is a phase transition matrix; H_(LOS,j,k) is a channel gain without passing through the IRS; and n_(k) is white Gaussian noise, which satisfies C

(0, σ²).

For ease of the subsequent calculation of an information transmission rate R_(k) of the user, simplification processing is made below:

H _(j,k) @H _(LOS,j,k) +H _(j,r) ΦH _(r,k)

Because the IRS is a plane, an antenna response vector of the IRS should be calculated based on a uniform planar array instead of a uniform linear array. Therefore, in a steering vector, a response with unit energy of an element in the IRS may be expressed as the following formula:

${a\left( {\Phi,\theta} \right)} = {\frac{1}{\sqrt{MN}}\left\lbrack {1,\ldots\;,e^{j\frac{2\pi}{\lambda}{d{({{m\mspace{14mu}\cos\;\phi_{il}\cos\;\theta_{il}} + {n\mspace{14mu}\sin\;\phi_{il}\sin\;\theta_{il}}})}}},\ldots\;,e^{j\frac{2\pi}{\lambda}{d{({{{({N - 1})}\cos\;\phi_{il}\cos\;\theta_{il}} + {{({M - 1})}\sin\;\phi_{il}\sin\;\theta_{il}}})}}}} \right\rbrack}^{T}$

m and n are antenna element indexes; λ is a wavelength; ϕ and θ represent an azimuth angle and an elevation angle of an incident signal; N represents the total number of antennas (the number of IRS reflection factors); d is an antenna spacing, which is generally set to d=1/4 λ.

$H_{JK} = {\sqrt{\frac{N_{t}N_{r}}{N_{clu}N_{ray}}}{\sum\limits_{i = 0}^{N_{clu} - 1}\;{\sum\limits_{l = 0}^{N_{ray}^{i} - 1}\;{\alpha_{il}{a_{r}\left( {\phi_{il}^{r},\theta_{il}^{r}} \right)}{a_{t}\left( {\phi_{il}^{t},\theta_{il}^{t}} \right)}^{H}}}}}$

N represents the number of transmit antennas, 1V. represents the number of receive antennas, α_(i1) represents a fading coefficient of a channel; and N_(clu) and N_(ray) ^(i) are clusters of a square antenna array and paths within each cluster.

With reference to the above formula, the channel gains can be expressed in the following manner:

$H_{JK} = \begin{bmatrix} h_{11} & h_{12} & \ldots & h_{1K} \\ h_{21} & h_{22} & \ldots & h_{2K} \\ M & M & O & M \\ h_{J\; 1} & h_{J\; 2} & \ldots & h_{JK} \end{bmatrix}$

Each row represents an index of an antenna of the AP, and each column represents an index of a current user.

In addition, the molecular absorption loss of terahertz cannot be ignored. Therefore, a direct path gain comes from a spread loss L_(spread) and a molecular absorption L_(abs).

L(ƒ, d)=L _(spread)(ƒ,d)L _(abs)(ƒ, d)

${{L_{spread}\left( {f,d} \right)} = {{\left( \frac{c}{4\pi\;{fd}} \right)^{2}\mspace{14mu}{and}\mspace{14mu}{L_{abs}\left( {f,d} \right)}} = e^{{- {k_{abs}{(f)}}}d}}};$

from the molecular perspective, L_(abs) depends on the condition of a transmission medium.

By using an ergodic mean capture system, a wireless resource scheduling problem can be converted into a long-term instantaneous performance function:

x≤E[f(p(h), h)]

f(p(h),h) is an instantaneous performance function. The goal of system design is to select resource scheduling p(h) to maximize an ergodic variable x. The average variable x reflects the performance of the wireless communication system over a long period of time and is affected by instantaneous resource scheduling.

In the system design of the present invention, h is a channel state, p(h) is an instantaneous transmit power, and f₁ (p(h), h) is an instantaneous data transmission rate. The design goal is to maximize the ergodic rate average vector x of the power scheduling p(h) under power constraints.

max ƒ₀ (x)

-   -   x≤E[f₁(p(h), h)], f₂(x)≥0

s.t.

-   -   x∈χ, p∈P

At the receiving end, a serial interference cancellation (SIC) technology is used for multi-user detection. At the transmitting end, signals of different users on the same sub-channel are transmitted using a power multiplexing technology, and signal powers of different users are scheduled according to related algorithms, so that each user corresponds to a different signal power at the receiving end. The receiver performs interference cancellation in a specific sequence according to different signal powers, to achieve correct demodulation, The SIC technology can also achieve the purpose of distinguishing different users. An instantaneous response function ƒ_(1,k) (h_(k), p_(k) (h_(k))) is about the calculation of capacity.

${f_{1,k}\left( {h_{k},{p_{k}\left( h_{k} \right)}} \right)} = {\log\left( {1 + \frac{h_{kk}{p_{k}\left( h_{k} \right)}}{1 + {\sum\limits_{l = {k + 1}}^{l \neq k}\;{h_{k}{p_{l}\left( h_{k} \right)}}}}} \right)}$

A limited function ƒ₂ (x) needs to be defined as follows:

${f_{2}(x)} = {p_{\max} - {E_{h}\left\lbrack {\sum\limits_{k = 1}^{K}\;{\pi_{k}\left( {h,\theta} \right)}} \right\rbrack}}$

Therefore, the problem becomes as follows:

max Σ_(k) log (x_(k))

${s.t.\mspace{14mu} x} \leq {E\left\lbrack {\log\left( {1 + \frac{h_{kk}{\pi_{k}\left( {h,\theta} \right)}}{1 + {\sum\limits_{l = {k - 1}}^{l \neq k}\;{h_{kk}{\pi_{k}\left( {h,\theta} \right)}}}}} \right)} \right\rbrack}$ ${p_{\max} - {E_{h}\left\lbrack {\sum\limits_{k = 1}^{K}\;{\pi_{k}\left( {h,\theta} \right)}} \right\rbrack}} \geq 0$ x ∈ χ, θ ∈ Θ

For the above system, the value-based method in reinforcement learning is insufficient to deal with problems in a restricted state. When a state in a state space is described by using features, due to limitations of individual observation or modeling limitations, two states that are originally different in a real environment may have the same feature description after modeling. As a result, the value-based method may fail to obtain the optimal solution. Therefore, the present invention mainly uses a policy-based method, assisted with the value-based method.

The conventional policy-based solution is as follows:

_(θ) E _(h) f ₁ (π(h, θ), h)={circumflex over (f)} ₁ ({circumflex over (p)} _(θ) , h) Δ₇₄ log π_(h,θ)({circumflex over (p)} _(θ))

The defect of this conventional method lies in an update step size γ₁. When the step size is inappropriate, parameters after update become worse, which easily causes a worse result after learning. Therefore, it is necessary to find a suitable step size, to ensure that a reward function increases monotonically after each update. In this case, the PPO solves this problem by introducing relative entropy in policy update.

The PPO is an actor-critic structure, where the actor part intends to maximize i_(ppo) (0):

J _(PPO)(θ) =Σ_(i=1) ^(lter)(π(h,θ)/π_(old)(h,θ)) A(h,θ) −λD _(KL)(π(h,θ)/π_(old)(h,θ))

However, the actor part needs to modify a new policy according to an advantage function A(h,θ) on the basis of an old policy. With a high advantage function A (h,74 ), a modification range is large, making the new policy more likely to occur. Moreover, a KL penalty term is added, and λ is set to 0.95 in this method.

The corresponding advantage function A(h,θ) expresses an advantage of an action P relative to the average in state h.

A(h,θ)=E _(h) f′ ₁(π(h, θ), h)−E _(h) f ₁(π(h,θ), h)

f′₁ (π(h,θ), h) is an instantaneous performance function calculated after a new power is scheduled in the channel state h, and f₁ (π(h,θ), h) is an instantaneous performance function under an originally scheduled power in the channel state h.

In selection of a penalty function of the actor part, PPO2 is used in the present invention:

L^(CLIP) (θ)=E _(t)[min(r _(t)(θ(0) {circumflex over (f)}₁({circumflex over (p)}_(θ), h), clip (r_(t)(θ), 1−ε, 1+ε){circumflex over (f)}₁({circumflex over (p)}_(θ), h))]

where

${{r_{t}(\theta)} = \frac{\pi\left( {h,\theta} \right)}{\pi_{old}\left( {h,\theta} \right)}};$

in this case, a small distribution difference between two updates is ensured.

For the critic part, the penalty hit is to perform BWP scheduling on a value of an instantaneous performance function calculated from an outputted action. Because the critic part adopts the idea of deep Q learning network, the outputted instantaneous performance function needs to be discretized. A specific principle is as follows:

β={β₁, β₂, . . . , β_(n)}

β is the number of BWP available for scheduling. The update conditions take the following principle into consideration: the outputted performance function f₁ (g) satisfies the condition as follows:

β_(n+1) ←β_(n) , f ₁ (g)≥β_(n) R ₀

R₀ is an average data rate available for transmission per unit BWP.

A request access rate of the user may be expressed by a ZipF distribution as follows:

R _(request)=1/n ^(α) f ₁ (g)

typically, α is 0.56. R_(request) is also called user request profile.

By introducing parameterization to the previous system, the formula becomes as follows:

max ƒ₀ (x)

x≤E[f₁(p(h), h)], f₂(x)≥0

s.t.

x∈χ, p∈P

The utility function ƒ₀(x) is considered as a weighted operation,

A limited function f₂ (x) needs to be defined as follows:

${f_{2}(x)} = {p_{\max} - {E_{h}\left\lbrack {\sum\limits_{k = 1}^{K}\;{\pi_{k}\left( {h,\theta} \right)}} \right\rbrack}}$

For convenience, the Lagrangian function of the system is still as follows:

L(θ, x,λ, μ)=ƒ₀(x)+ϕ^(T) f ₂(x) +λ^(T)(E[f ₁(π(h,θ), h)]−x)

Gradients of the four parameters are calculated in sequence:

θ_(k+1)=θ_(k)+γ₁

_(θ) E[f ₁(π(h, θ _(k)), h)λ_(k)],

x _(k+1) =x _(k)+γ₂(

ƒ₀(x _(k))+

f ₂(x _(k))ϕ_(k)−1),

λ_(k+1)=λ_(k)−y₃(

(π(h, θ _(k+1)), h)−x _(k+1)),

ϕ_(k+1)=ϕ_(k)−γ₄

(x _(k+1)),

Then, the update in the original primal-dual variable formula is replaced with a zero-gradient update. The zero-gradient estimation may be completed by means of finite difference, in which an unbiased gradient estimation of a given point is constructed through random observations. A gradient estimation with finite difference may be constructed by using function observation values at given points x₀ and θ₀, and sampling points

,

,

.

$\mspace{76mu}{{\text{?}{f_{0}\left( x_{0} \right)}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{\text{?}\left( {x_{0} + {\alpha_{1}{\hat{x}}_{1}}} \right)} - {\text{?}\left( x_{0} \right)}}{\alpha_{1}}{\hat{x}}_{1}},\mspace{76mu}{\text{?}{f_{2}\left( x_{0} \right)}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{\text{?}\left( {x_{0} + {\alpha_{2}{\hat{x}}_{2}}} \right)} - {\text{?}\left( x_{0} \right)}}{\alpha_{2}}\text{?}},{{\text{?}{E\left\lbrack {f_{1}\left( {{\pi\left( {h,\theta} \right)},h} \right)} \right\rbrack}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{\text{?}\left( {{\pi\left( {h,{\theta_{0} + {\alpha_{3}\text{?}}}} \right)},h} \right)} - {\text{?}\left( {{\pi\left( {h,\theta} \right)},h} \right)}}{\alpha_{3}}\text{?}};}}$      ?indicates text missing or illegible when filed

α₁, α₂, α₃ are iteration factors of the gradient estimation, and γ₁, γ₂, γ₃, γ₄ are the primal dual upgrading steps, In the present invention, an optimization design for continuous power and discrete BWP is realized jointly by using the actor-critic structure of the proximal policy optimization algorithm, an optimal solution for scheduling of the two types of resources is obtained by using gradient-assisted primal duals, and then an iterative BWP and power joint scheduling algorithm is proposed to maximize the information transmission rate and economic benefits. The method in the present invention not only can schedule indoor bandwidth and power resources rationally, but also can maximize the economic benefits and energy efficiency.

Correspondingly, an embodiment of the present invention further provides a BWP and power scheduling apparatus for indoor terahertz. As shown in FIG. 3, the apparatus includes:

an initialization module, configured to initialize parameters and states of a wireless access device, users, and an IRS, including an initial transmit power p₀, a policy parameter θ₀:={μ₀, σ₀}, and Lagrange multipliers λ₀, ϕ₀;

a sample extraction module, configured to extract samples

,

,

from a truncated standard normal distribution;

a path loss and channel gain calculation module, configured to calculate a terahertz path loss L(ƒ, d) and a channel gain h_(j,k), including a transmission path from the wireless access device to each user, and a transmission path from the wireless access device to each user through reflection by the IRS;

an initial condition input module, configured to input initial conditions to a resource scheduling formula;

a channel state input module, configured to input a channel state obtained from a channel state matrix H_(JK) to a PPO algorithm;

a gradient estimation module, configured to calculate an estimate of gradient according to an Obtained new policy parameter set θ and a generated scheduling action;

a policy updating module, configured to update primal-dual variables by using a primal-dual optimization algorithm, until a reward converges;

an output module, configured to output an action obtained after learning, a scheduled IMP factor β and power p, and a final system performance function ƒ₀(x);

a traversing module, configured to traverse all the users to complete scheduling for all the users; and

a termination module, configured to terminate a method process, and fetch data.

Further, the path loss and channel gain calculation module is specifically configured to integrate channel estimations:

H _(j,k) @H _(LOS,j,k) +H _(j,r) ΦH _(r,k),

to unify the two transmission paths;

where H _(j,k) is a channel gain from the wireless access device to the user, H_(r,k) is a channel gain from the IRS to the user, H_(j,r) is a channel gain from the wireless access device to the IRS, Φ is a phase transition matrix, and H_(LOS,j,k) is a channel gain without passing through IRS.

The resource scheduling formula is expressed as a long-term instantaneous system performance function using an ergodic mean x capture system: x≤E[f(p(h), h)], where f (p(h),h) is an instantaneous performance function.

Further, the channel state input module is specifically configured to: input the channel state to an actor part and a critic part of the PPO algorithm, where the actor part generates a new policy function, and selects a Gaussian policy to output a choice for scheduling of an action, and the critic part generates a new action according to an original Q value function, to schedule a BWP factor.

The gradient estimation module is specifically configured to calculate the estimate of gradient according to the obtained new policy parameter set θ and the generated scheduling action:

$\mspace{76mu}{{\text{?}{f_{0}\left( x_{0} \right)}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{\text{?}\left( {x_{0} + {\alpha_{1}{\hat{x}}_{1}}} \right)} - {\text{?}\left( x_{0} \right)}}{\alpha_{1}}{\hat{x}}_{1}},\mspace{76mu}{\text{?}{f_{2}\left( x_{0} \right)}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{\text{?}\left( {x_{0} + {\alpha_{2}{\hat{x}}_{2}}} \right)} - {\text{?}\left( x_{0} \right)}}{\alpha_{2}}\text{?}},{{\text{?}{E\left\lbrack {f_{1}\left( {{\pi\left( {h,\theta} \right)},h} \right)} \right\rbrack}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{\text{?}\left( {{\pi\left( {h,{\theta_{0} + {\alpha_{3}\text{?}}}} \right)},h} \right)} - {\text{?}\left( {{\pi\left( {h,\theta} \right)},h} \right)}}{\alpha_{3}}\text{?}};}}$      ?indicates text missing or illegible when filed

where x₀, θ₀ is a given point,

,

,

are sampling points, α_(l),α₂,α₃ are iteration factors of a gradient estimation; h is a channel state; π(h, θ) is an allocation policy;

(π, (h, θ), h) is an observation value of an instantaneous system performance function;

(x₀) is an observation value of a constraint function;

₀ (x₀) is an observation value of a target function; and

ƒ₀ (x₀),

ƒ₂(x₀),

₀E [f₁(π(h, θ), h)] is a gradient observation value obtained through calculation; and in the policy updating module, Lagrangian operators λ_(k+1) and ϕ_(k+1) are updated based on step sizes γ₁, γ₂,γ₃, γ₄, and a Lagrangian operator updating formula is as follows:

θ_(k+1)=θ_(k)+γ₁

_(θ) E[f ₁(π(h, θ _(k)), h)λ_(k)],

x _(k+1) =x _(k)+γ₂(

ƒ₀(x _(k))+

f ₂(x _(k))ϕ_(k)−1),

λ_(k+1)=λ_(k)−y₃(

(π(h, θ _(k+1)), h)−x _(k+1)),

ϕ_(k+1)=ϕ_(k)−γ₄

(x _(k+1)),

where h is a channel state; f₁(π(h,θ), h) is an instantaneous data transmission rate; π(h,θ) is an instantaneous transmit power; θ_(k) is a parameter set of the k^(th) cycle; x_(k) is an ergodic mean of the k^(th) cycle; and λ_(k), ϕ_(k) are Lagrange multipliers of the k^(th) cycle.

The BWP and power scheduling apparatus for indoor terahertz of the present invention not only can schedule indoor bandwidth and power resources rationally, but also can maximize the economic benefits and energy efficiency.

The above merely describes preferred embodiments of the present invention, but is not intended to limit the present invention. Any modifications, equivalent replacements or improvements made within the spirit and principle of the present invention shall fall within the protection scope of the present invention. 

1. A bandwidth part (BWP) and power scheduling method for an indoor terahertz, comprising the following steps: S 1: initializing parameters and states of a wireless access device, users, and an intelligent reflecting surface (IRS), wherein the parameters comprises an initial transmit power p₀, a policy parameter θ₀:={μ₀, σ₀}, and Lagrange multipliers λ₀, ϕ₀, wherein μ₀ denotes expectation of an initial policy, and σ₀ denotes variance of the initial policy; S2: extracting samples {circumflex over (x)}_(i), {circumflex over (x)}₂, {circumflex over (θ)} from a truncated standard normal distribution; S3: calculating a terahertz path loss L (f, d) and a channel gain h_(j,k), wherein paths comprises a first transmission path from the wireless access device to each user, and a second transmission path from the wireless access device to the each user through a reflection by the IRS,. and wherein f denotes carrier frequency, and d denotes distance, j denotes an index of an antenna of an access point, k denotes an index of a current user; S4: inputting initial conditions to a resource scheduling formula; S5: inputting a channel state obtained from a channel state matrix H_(JK) (to a proximal policy optimization (PPO) algorithm, wherein J denotes a number of antennas, and K denotes a number of users; S6: calculating an estimate of a gradient according to an obtained new policy parameter set θ and a generated scheduling action; S7: updating primal-dual variables by using a primal-dual optimization algorithm, until a reward converges; S8: outputting an action obtained after learning, a scheduled BWP factor β and a power p, and a final system performance function ƒ₀ (x) , wherein x denotes an ergodic mean; S9: traversing the users, and repeating step S2 to step S7, to complete a scheduling for the users; and S10: terminating a the BWP and power scheduling method process, and fetching data.
 2. The BWP and power scheduling method according to claim 1, wherein in step S3, channel estimations are integrated: H _(j,k)

H _(LOS,j,k) +H _(j,r) ΦH _(r,k), to unify the first transmission path and the second transmission path; wherein H_(j,k) is a first channel gain from the wireless access device to the each user, H_(r,k) is a second channel gain from the IRS to the each user, H_(j,r) is a third channel gain from the wireless access device to the IRS, Φ is a phase transition matrix, and H_(LOS,j,k) is a fourth channel gain without passing through the IRS.
 3. The BWP and power scheduling method according to claim 1, wherein in step S4, the resource scheduling formula is expressed as a long-term instantaneous system performance function using the ergodic mean x capture system: x≤E [f (p(h), h)], wherein f (p(h),h) is an instantaneous performance function, wherein h denotes a channel state.
 4. The BWP and power scheduling method according to claim 1, wherein in step S5, the channel state is inputted to an actor part and a critic part of the PPO algorithm, wherein the actor part generates a new policy function, and selects a Gaussian policy to output a choice for scheduling of the action, and the critic part generates a new action according to an original Q value function, to schedule a BWP factor.
 5. The BWP and power scheduling method according to claim 1, wherein in step S6, the estimate of the gradient is calculated according to the obtained new policy parameter set θ and the generated scheduling action: ${{\hat{\nabla}{f_{0}\left( x_{0} \right)}}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{{\hat{f}}_{0}\left( {x_{0} + {\alpha_{1}{\hat{x}}_{1}}} \right)} - {{\hat{f}}_{0}\left( x_{0} \right)}}{\alpha_{1}}{\hat{x}}_{1}},$ ${{\hat{\nabla}{f_{2}\left( x_{0} \right)}}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{{\hat{f}}_{2}\left( {x_{0} + {\alpha_{2}{\hat{x}}_{2}}} \right)} - {{\hat{f}}_{2}\left( x_{0} \right)}}{\alpha_{2}}{\hat{x}}_{2}^{T}},{{{{\hat{\nabla}}_{\theta}{E\left\lbrack {f_{1}\left( {{\pi\left( {h,\theta} \right)},h} \right)} \right\rbrack}}\mspace{14mu}\text{:=}\mspace{14mu}\frac{{{\hat{f}}_{1}\left( {{\pi\left( {h,{\theta_{0} + {\alpha_{3}\hat{\theta}}}} \right)},h} \right)} - {{\hat{f}}_{1}\left( {{\pi\left( {h,\theta_{0}} \right)},h} \right)}}{\alpha_{3}}{\hat{\theta}}^{T}};}$ wherein x₀, 74 ₀ are given points, {circumflex over (x)}₁, {circumflex over (x)}₂, {circumflex over (θ)} are sampling points, α₁, α₂, α₃ are iteration factors of a gradient estimation; h is the channel state; π(h, θ) is an allocation policy; {circumflex over (f)}_(l) (π(h, θ), h) is an observation value of an instantaneous system performance function; {circumflex over (f)}₂ (x₀) is an observation value of a constraint function; {circumflex over (ƒ)}₀ (x₀) is an observation value of a target function; and {circumflex over (∇)}ƒ₀(x₀), {circumflex over (∇)}f₂ (x₀), {circumflex over (∇)}_(θ)E [f₁(π(h, θ), h)] are gradient observation values obtained through a calculation; and in step S7, Lagrangian operators λ_(k+1) and ϕ_(k+1) are updated based on step sizes γ₁, γ₂, γ₃, γ₄, and a Lagrangian operator updating formula is as follows: θ_(k+1)=θ_(k)+γ₁{circumflex over (∇)}_(θ) E[f ₁(π(h, θ_(k)), h)λ_(k)], x _(k+1) =x _(k)+γ₂({circumflex over (∇)}ƒ₀(x _(k))+{circumflex over (∇)}f ₂(x _(k))ϕ_(k)−1), λ_(k+1)=λ_(k)−γ₃({circumflex over (f)} ₁(π(h,θ_(k+1)), h)−x _(k+1)), ϕ_(k+1)=ϕ_(k)−γ₄ {circumflex over (f)} ₂(x _(k+1)), θ_(k) is a parameter set of a k^(th) cycle; x_(k) is an ergodic mean of the k^(th) cycle; and λ_(k), ϕ_(k) are Lagrange multipliers of the k^(th) cycle. 6-10. (canceled) 